/* File gfx_sdl.h */
#ifndef GFX_SDL_H
#define GFX_SDL_H

#include "gfx_skitchin.h"
#include "SDL.h"
#include "input.h"

namespace Skitchin_SDL
{
      class CDrawingInterface: public CAbstractDrawingInterface
      {
            private:
                    SDL_Surface * screen;
					SDL_Event event;

            public:
                    //CDrawingInterface( ){ };
                    //~CDrawingInterface( ){ };                   
                    int blit( CAbstractDrawable * drawable );
                    void destroywindow( );
                    void fillrect( SRGB color, SRect rectarea );
                    void fillscreen( SRGB color );
                    void initwindow( unsigned int w, unsigned int h, unsigned int bpp, const char * title );
                    void swapbuffers( );
					int Tick( );
      };
      
      class CDrawable: public CAbstractDrawable
      {
            private:
                    //
            public:
                    int TextureFromFile( char * file, SRGB alphacolor );
					int TextureFromFile( char * file ) { return TextureFromFile( file, SRGB() ); }
      };
}

#endif /* GFX_SDL_H */
